package javabase.schoolwork.day6_6;

/**
 * @author fance
 * @date 18-6-6 下午4:34
 */
public enum Job {
    FIRST("初级教师","一年"),
    SECOND("高级教师","五年");
    private String name;
    private String year;

    Job(String name, String year) {
        this.name = name;
        this.year = year;
    }

    @Override
    public String toString() {
        return "Job{" + name + "-" + year  +
                '}';
    }

    public static void main(String[] args) {
        for (Job job : Job.values()) {
            System.out.println(job);
        }
    }
}
